#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stddef.h>
struct S
{
    int a;
    char c;
    double d;
};
#define OFFSETOF(st_type,men_name)   (size_t)&(((st_type*)0)->men_name)
int main() {
    printf("%d\n", OFFSETOF(struct S, a));
    printf("%d\n", OFFSETOF(struct S, c));
    printf("%d\n", OFFSETOF(struct S, d));
    return 0;
}
